package cn.wolfcode.rbac.mapper.system_manage;

import cn.wolfcode.rbac.domain.Permission;
import cn.wolfcode.rbac.query.QueryObject;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    /**
     * 分页方法
     * @Author Cao Zhijian
     * @Creed: Talk is cheap,show me the code
     * @Created: 2020/12/25 0025 10:00
     * @param queryObject :
     * @return : java.util.List<cn.wolfcode.rbac.domain.Department>
     */
    List<Permission> selectForList(QueryObject queryObject);

    /**
     * 查询数据库中有多少条数据
     * @Author Cao Zhijian
     * @Creed: Talk is cheap,show me the code
     * @Created: 2020/12/25 0025 10:01
     * @return : int
     */
    int selectForCount();

    List<String> selectExpressions();

    Set<String> selectExpressionsByEmployeeId(Long id);
}